package com.RHECmap.com;





import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import geofencing.*;

public class RHECmapActivity extends Activity {
    /** Called when the activity is first created. */
	private Button show_map;
	private Button setfence;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        show_map = (Button)findViewById(R.id.button1);
        show_map.setOnClickListener(new View.OnClickListener() {
			
		public void onClick(View arg0) {
			
				Preferece.setMyString(getApplicationContext(), "menu","main");
			
				Intent intent = new Intent();
				intent.setClass(getApplicationContext(), mapShow.class);				
	            startActivityForResult(intent,0);         
			}
		});
        
        //--setfence button click event
        setfence=(Button)findViewById(R.id.btnsetfence);
        setfence.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View arg0) {
				
				Preferece.setMyString(getApplicationContext(), "menu","sub");
				Intent intent = new Intent();
				intent.setClass(getApplicationContext(), mapShow.class);				
	            startActivityForResult(intent,0);
				
			}
		});
        
        
        
        
    }
	@Override
	public void onBackPressed() {		
		super.onBackPressed();
		finish();
	}
    
}